<?php
 require_once("../config/index.php");
 require_once('../controllers/adFlag.php');
 require_once('../controllers/controller.php');
?>
  <!DOCTYPE html>
  <html lang="en">
  <head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="<?php echo SERVER_STATICS?>css/stone.min.css" rel="stylesheet">
    <link href="<?php echo SERVER_STATICS?>css/bootstrap.min.css" rel="stylesheet">
  </head>

  <body>
    <div class="">
          <table class="table table-hover table-bordered p0 m0">
            <thead>
              <tr>
                <th>编号</th>
                <th>学号</th>
                <th>姓名</th>
                <th>密码</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
              <?php
                $res=$student->showAll();
                for ($i=0; $i<count($res) ; $i++) { 
                  $t=json_decode($res[$i], true);
                  echo("<tr>"."<td>".$t['id']."</td>"."<td>".$t['studentId']."</td>"."<td>".$t['studentName']."</td>"."<td>".$t['studentPwd']."</td>"."<td><a href='/studentSkill/controllers/controller.php?action=studentDel&&id=".$t['id']."'>删除</a></td>"."</tr>");
                }
              ?>
            </tbody>
          </table>
    </div>
  </body>
  </html>